package com.pjs.tdd;

public class SimpleAccountIdentifier implements AccountIdentifier{
	
	private Integer id;
	private AccountType accountType;
	
	public static SimpleAccountIdentifier simpleAccountIdentifier(int id,AccountType accountType){
		return new SimpleAccountIdentifier(id,accountType);
	}
	
	public SimpleAccountIdentifier(int id,AccountType accountType){
		this.id=new Integer(id);	
		this.accountType=accountType;
	}

	@Override
	public Integer id() {
		return id.intValue();
	}

	@Override
	public AccountType type() {
		return AccountType.lookup(this.accountType);
	}
	

}
